using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class bp_group_paraMap : EntityTypeConfiguration<bp_group_para>
    {
        public bp_group_paraMap()
        {
            // Primary Key
            this.HasKey(t => t.bp_group_id);

            // Properties
            this.Property(t => t.bp_group_name)
                .HasMaxLength(50);

            this.Property(t => t.bp_group_name_en_US)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("bp_group_para");
            this.Property(t => t.bp_group_id).HasColumnName("bp_group_id");
            this.Property(t => t.bp_group_name).HasColumnName("bp_group_name");
            this.Property(t => t.bp_group_name_en_US).HasColumnName("bp_group_name!en-US");
        }
    }
}
